﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContactPersonList.ascx.cs" Inherits="Workflow.Alerts.Sublayouts.ProfileSettings.ContactPersonList" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<script type="text/javascript">
    function RowClick(sender, args) {
        currentRowIndex = args.get_gridDataItem().get_element().rowIndex;
        document.location = document.getElementById('<%=DetailsPath.ClientID%>').value + "?uId=" + args.getDataKeyValue("id");
    }

    function RowCreated(sender, args) {

    }
</script>

<h2 class="settingsTitle">Contactpersonen</h2>
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" GridLines="None"
    CssClass="tag_mainList" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" skin="workflow">
    <ClientSettings EnableRowHoverStyle="true">
        <ClientEvents OnRowClick="RowClick" OnRowCreated="RowCreated"/>
    </ClientSettings>
    <MasterTableView DataKeyNames="id" ClientDataKeyNames="id"  ShowFooter="false">
    <Columns>
        <telerik:GridBoundColumn UniqueName="id" Visible="false" DataField="id" >
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="FirstName"  DataField="firstname" HeaderText="Voornaam">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="LastName"  DataField="lastname" HeaderText="Achternaam">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="Email"  DataField="email" HeaderText="E-mail">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="Phone"  DataField="phone1" HeaderText="Telefoon">
        </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<div class="footerButtonContainer">
<asp:Button ID="btnNew" runat="server" Text="Nieuwe contactpersoon" 
    onclick="btnNew_Click" CssClass="styledButton styledButton150" />
</div>
<input type="hidden" runat="server" id="DetailsPath" />




